home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 115 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.std.c
  2. Path: nntp.coast.net!torn!sq!msb
  3. From: msb@sq.com (Mark Brader)
  4. Subject: Re: brief summary of Technical Corrigendum 2
  5. Message-ID: <1996Jan16.174120.3636@sq.com>
  6. Organization: SoftQuad Inc., Toronto, Canada
  7. References: <4d554m$q4b@news1.halcyon.com> <4dfgdt$se6@der.twinsun.com>
  8. Date: Tue, 16 Jan 1996 17:41:20 GMT
  9.  
  10. Paul Eggert (eggert@twinsun.com) writes:
  11. > Publication of Technical Corrigendum 2 is ``imminent'', according to
  12. > Douglas A. Gwyn, ``C Standards Update'', _The Journal of C Language
  13. > Translation_ *6*, 3 (March 1995), 150-156. 
  14.  
  15. Hurray.
  16.  
  17. > * String and wide string literals need not be distinct even if not identical,
  18. >   so long as their elements have appropriate values.
  19.  
  20. This may be momentarily puzzling, if you don't realize that "their
  21. elements" includes the trailing null character.  So, given:
  22.  
  23.     char *p = "classes", *q = "lasses", *r = "asses", *s = "ass", *t = "as";
  24.  
  25. it will now be permissible for any or all of p+2, q+1, and r to point to
  26. the same byte of storage, but s and t must still each be different.
  27. The change resolves an ambiguity as to the meaning of "identical string
  28. literals" in the existing standard; remember that "c" "l" "asses" is
  29. effectively equivalent to "classes".
  30. -- 
  31. Mark Brader                     "C was developed for the programmer
  32. msb@sq.com                       (two of them, in fact)"
  33. SoftQuad Inc., Toronto                          --  Alasdair Grant
  34.  
  35. My text in this article is in the public domain.
  36.